package org.qydjk.common.pojo;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by ASUS on 2017/12/18.
 */
@Entity
@Table(name = "qy_special_detail", schema = "qydjk", catalog = "")
public class SpecialDetail {
    private Integer id;
    private Integer specialLocId;
    private Integer cityId;
    private String title1;
    private String title2;
    private String des1;
    private String des2;
    private String thumbnailImg1;
    private String img1;
    private String thumbnailImg2;
    private String img2;
    private Integer clickType;
    private String url;
    private String content;
    private Integer ord;
    private Date createTime;
    private Date updateTime;
    private Integer type;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "special_loc_id")
    public Integer getSpecialLocId() {
        return specialLocId;
    }

    public void setSpecialLocId(Integer specialLocId) {
        this.specialLocId = specialLocId;
    }

    @Basic
    @Column(name = "city_id")
    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    @Basic
    @Column(name = "title1")
    public String getTitle1() {
        return title1;
    }

    public void setTitle1(String title1) {
        this.title1 = title1;
    }

    @Basic
    @Column(name = "title2")
    public String getTitle2() {
        return title2;
    }

    public void setTitle2(String title2) {
        this.title2 = title2;
    }

    @Basic
    @Column(name = "des1")
    public String getDes1() {
        return des1;
    }

    public void setDes1(String des1) {
        this.des1 = des1;
    }

    @Basic
    @Column(name = "des2")
    public String getDes2() {
        return des2;
    }

    public void setDes2(String des2) {
        this.des2 = des2;
    }

    @Basic
    @Column(name = "thumbnail_img1")
    public String getThumbnailImg1() {
        return thumbnailImg1;
    }

    public void setThumbnailImg1(String thumbnailImg1) {
        this.thumbnailImg1 = thumbnailImg1;
    }

    @Basic
    @Column(name = "img1")
    public String getImg1() {
        return img1;
    }

    public void setImg1(String img1) {
        this.img1 = img1;
    }

    @Basic
    @Column(name = "thumbnail_img2")
    public String getThumbnailImg2() {
        return thumbnailImg2;
    }

    public void setThumbnailImg2(String thumbnailImg2) {
        this.thumbnailImg2 = thumbnailImg2;
    }

    @Basic
    @Column(name = "img2")
    public String getImg2() {
        return img2;
    }

    public void setImg2(String img2) {
        this.img2 = img2;
    }

    @Basic
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    @Basic
    @Column(name = "click_type")
    public Integer getClickType() {
        return clickType;
    }

    public void setClickType(Integer clickType) {
        this.clickType = clickType;
    }

    @Basic
    @Column(name = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "ord")
    public Integer getOrd() {
        return ord;
    }

    public void setOrd(Integer ord) {
        this.ord = ord;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SpecialDetail that = (SpecialDetail) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (specialLocId != null ? !specialLocId.equals(that.specialLocId) : that.specialLocId != null) return false;
        if (title1 != null ? !title1.equals(that.title1) : that.title1 != null) return false;
        if (title2 != null ? !title2.equals(that.title2) : that.title2 != null) return false;
        if (des1 != null ? !des1.equals(that.des1) : that.des1 != null) return false;
        if (des2 != null ? !des2.equals(that.des2) : that.des2 != null) return false;
        if (thumbnailImg1 != null ? !thumbnailImg1.equals(that.thumbnailImg1) : that.thumbnailImg1 != null)
            return false;
        if (img1 != null ? !img1.equals(that.img1) : that.img1 != null) return false;
        if (thumbnailImg2 != null ? !thumbnailImg2.equals(that.thumbnailImg2) : that.thumbnailImg2 != null)
            return false;
        if (img2 != null ? !img2.equals(that.img2) : that.img2 != null) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (url != null ? !url.equals(that.url) : that.url != null) return false;
        if (content != null ? !content.equals(that.content) : that.content != null) return false;
        if (ord != null ? !ord.equals(that.ord) : that.ord != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (specialLocId != null ? specialLocId.hashCode() : 0);
        result = 31 * result + (title1 != null ? title1.hashCode() : 0);
        result = 31 * result + (title2 != null ? title2.hashCode() : 0);
        result = 31 * result + (des1 != null ? des1.hashCode() : 0);
        result = 31 * result + (des2 != null ? des2.hashCode() : 0);
        result = 31 * result + (thumbnailImg1 != null ? thumbnailImg1.hashCode() : 0);
        result = 31 * result + (img1 != null ? img1.hashCode() : 0);
        result = 31 * result + (thumbnailImg2 != null ? thumbnailImg2.hashCode() : 0);
        result = 31 * result + (img2 != null ? img2.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (url != null ? url.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (ord != null ? ord.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        return result;
    }
}
